import 'package:flutter/material.dart';
import 'package:tender_flutter/constant/theme_colors.dart';
import 'package:tender_flutter/router/router.dart';
import 'package:tender_flutter/utils/screen_adaper.dart';

class NumberLimitDialog extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return _initBody(context);
  }

  Widget _initBody(BuildContext context) {
    return Center(
        child: Container(
      width: ScreenAdapter.width(600),
      padding: EdgeInsets.only(top: ScreenAdapter.height(40)),
      decoration: BoxDecoration(
          color: ThemeColors.colorWhite,
          borderRadius: BorderRadius.circular(ScreenAdapter.width(15))),
      child: Column(mainAxisSize: MainAxisSize.min, children: [
        Text("今日查询次数已用完 ",
            style: TextStyle(
                color: ThemeColors.colorType2,
                fontSize: ScreenAdapter.sp(36),
                fontWeight: FontWeight.bold)),
        SizedBox(height: ScreenAdapter.height(40)),
        Text("企业查询+失信查询每天累计10次",
            style: TextStyle(
                color: ThemeColors.colorType14,
                fontSize: ScreenAdapter.sp(24),
                fontWeight: FontWeight.w500)),
        SizedBox(height: ScreenAdapter.height(30)),
        Text("明天再来哦~",
            style: TextStyle(
                color: ThemeColors.colorType14,
                fontSize: ScreenAdapter.sp(24),
                fontWeight: FontWeight.w500)),
        Container(
            margin: EdgeInsets.symmetric(vertical: ScreenAdapter.height(40)),
            width: ScreenAdapter.width(230),
            height: ScreenAdapter.height(60),
            child: FlatButton(
                onPressed: () {
                  LRouter.navigatorCtx(context).pop();
                },
                color: ThemeColors.colorType6,
                shape: RoundedRectangleBorder(
                  borderRadius: BorderRadius.circular(ScreenAdapter.width(30)),
                ),
                child: Text("我知道了",
                    style: TextStyle(
                        color: ThemeColors.colorWhite,
                        fontSize: ScreenAdapter.sp(24)))))
      ]),
    ));
  }
}
